# Contributor: Mike Crute <mike@crute.us>
# Maintainer: Mike Crute <mike@crute.us>
pkgname=znc-clientbuffer
pkgver=1.0.48
pkgrel=7
pkgdesc="ZNC module for client specific buffers"
url="https://wiki.znc.in/Clientbuffer"
arch="all"
license="MIT"
makedepends="znc-dev icu-dev openssl-dev>3 zlib-dev"
source="$pkgname-$pkgver.tar.gz::https://github.com/CyberShadow/znc-clientbuffer/archive/refs/tags/v$pkgver.tar.gz"
options="!check" # Upstream has no tests
builddir="$srcdir/$pkgname-$pkgver"

build() {
	make PREFIX=/usr
}

package() {
	install -D -m644 "$builddir"/clientbuffer.so "$pkgdir"/usr/lib/znc/clientbuffer.so
}

sha512sums="
eac4d748b670a8e3563a424fcb5c9c411af6c9b1f9965f065936ddfcfbff946783e34e0d6b32de18fb3b87fb27db129ff58bedfb179473c804750a9b770897f6  znc-clientbuffer-1.0.48.tar.gz
"
